﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.Data.OleDb;
using saigonbook.Biz;

namespace saigonbook.Dal
{
    class DAL_admin
    {
        public static List<BIZ_admin> Select_admin()
        {
            DataProvider db = new DataProvider();
            DataTable dt = db.GetData("Select * from [ADMIN]");
            List<BIZ_admin> list = new List<BIZ_admin>();
            foreach (DataRow row in dt.Rows)
            {
                BIZ_admin admin = new BIZ_admin(row[0].ToString(), row[1].ToString(), row[2].ToString());
                list.Add(admin);
            }
            return list;
        }
    }
}
